package com.crane.oss.common.bean.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2019年01月16日 10时12分53秒
 */
@Getter
@Setter
@ToString
@ApiModel(description = "新增动态码参数")
public class AddDynamicCodeRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名", name = "userId", hidden = true)
    @Size(max = 32, message = "用户名长度超长")
    private String userId;

    @ApiModelProperty(value = "业务类型", name = "bizType")
    @Size(min = 1, max = 32, message = "bizType长度不对")
    private String bizType;

    @ApiModelProperty(value = "手机号", name = "phone")
    @Size(min = 1, max = 255, message = "phone长度不对")
    private String phone;

    @ApiModelProperty(value = "过期时间", name = "expiredTime", hidden = true)
    private Date expiredTime;

    @ApiModelProperty(value = "备注", name = "memo", hidden = true)
    @Size(max = 255, message = "memo长度超长")
    private String memo;

    @ApiModelProperty(value = "失败限制数", name = "failLimit", hidden = true)
    private Integer failLimit;


}
